package com.qfmy.mapper.assistant;

import model.entity.assistant.Image;
import model.query.ImageQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 清风明月
 * @Package com.qfmy.mapper.assistant
 * @date 2025/5/21
 * @description 图片mapper
 */
@Mapper
@SuppressWarnings("all")
public interface ImageMapper {

    /**
     * 根据用户id查询图片
     * @param userId
     * @return
     */
    List<Image> getImg(@Param("userId") Long userId);

    /**
     * 根据类型d查询图片
     * @param query
     * @return
     */
    List<Image> getImgByType(ImageQuery query);


}
